<script>
import { reactive } from "vue";
export default {
  setup() {
    const obj = reactive({
      name: "123",
      age: 12,
    });
    const btn = () => {
      console.log("btn", obj.age);

      obj.age++;
    };
    return { obj, btn };
  },
};
</script>

<template>
  <div>
    1231

    {{ obj.name }}
    23---------------{{ obj.age }}
  </div>
  <button @click="btn">点击一下</button>
</template>

<style></style>
